package com.itheima.dao;

import com.itheima.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface GoodsDao {

    /**
     * 根据ID查询商品详情
     *
     * @param id
     * @return
     */
    @Select("select * from tb_goods where id = #{id}")
    public Goods findById(String id);

}
